package br.perfiman.model;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Embeddable;

/**
 *
 * @author Wagner Costa
 * @since 27/12/2007
 * @version 1.0
 *
 */
@Embeddable
public class Address implements Serializable{
	private static final long serialVersionUID = -702822621809181173L;

	@Column(length=100)
	private String address;

	@Column(length=255)
	private String other;

	@Column(length=100)
    private String city;

	@Column(length=50)
    private String state;

	@Column(length=10)
    private String zip;

	@Column(length=50)
    private String country;

	public String getAddress() {
		return address;
	}
	public String getCity() {
		return city;
	}
	public String getOther() {
		return other;
	}
	public String getState() {
		return state;
	}
	public String getZip() {
		return zip;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public void setCity(String city) {
		this.city = city;
	}
	public void setOther(String other) {
		this.other = other;
	}
	public void setState(String state) {
		this.state = state;
	}
	public void setZip(String zip) {
		this.zip = zip;
	}

	@Override
	public String toString() {
		StringBuilder b = new StringBuilder();
		b.append("address: ").append(getAddress());
		b.append("; city: ").append(getCity());
		b.append("; state: ").append(getState());
		b.append("; zip: ").append(getZip());
		b.append("; other: ").append(getOther());
		return b.toString();
	}
	public String getCountry() {
		return country;
	}
	public void setCountry(String country) {
		this.country = country;
	}
}